
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex布局</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .parent {
            width: 100%;
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            background: #FE7A6B;
        }

        .parent>div {
            width: 19%;
            height: 400px;
            background: white;
            margin-top: 12px;

        }

        .parent>div>.imgBox {
            width: 80%;
            height: 50%;
            margin: 20px auto;
        }

        .parent>div>.imgBox>img {
            width: 100%;
            height: 100%;
        }

        .parent>div .title {
            text-align: center;
            display: flex;
            justify-content: center;
        }

        .parent>div .title .baojia {
            width: 74px;
            height: 20px;
            text-align: center;
            color: white;
            background: #D10C2D;
            font-size: 12px;
            line-height: 20px;
            border-radius: 10px;
            margin: 0 5px;
        }

        .parent>div .title .trade_name {
            width: 150px;
            overflow: hidden;
            height: 20px;
            text-align: center;
            line-height: 20px;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-weight: 800;
        }

        .message {
            text-align: center;
            display: flex;
            justify-content: center;
            color: #AEAEAE;
            height: 20px;
            line-height: 20px;
            margin:20px 0 ;
        }

        .message .jiang,
        .mian,.fenge {
            font-size: 16px;
            color: #AEAEAE;
            line-height: 20px;
        }
        .fenge{
            margin: 0 2px;
        }
        .price{
            text-align: center;
            display: flex;
            justify-content: center;
        }
        .price .xian_price{
            color: #D10A2C;
            font-size: 20px;
            line-height: 30px;
            margin: 0 6px;
        }
        .price .yuan_price{
            color: #AEAEAE;
            font-size: 14px;
            text-decoration: line-through;
            line-height: 30px;
            margin: 0 6px;
        }
        .biaoqian{
            text-align: center;
            display: flex;
            justify-content: center;
        }
        .biaoqian div{
            width: 80px;
            height: 20px;
            text-align: center;
            line-height: 20px;
            border: 1px solid #D10A2C;
            color: #D10A2C;
            font-size: 12px;
            margin: 0 6px;
            border-radius: 5px;
        }
    </style>
</head>

<body>
    <div class="parent">
        <div>
            <div class="imgBox">
                <img src="https://img2.baidu.com/it/u=2666428851,2803796192&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500"
                    alt="未能加载图片">
            </div>
            <div class="title">
                <div class="baojia">保价618</div>
                <div class="trade_name">p 50 pro 88888888888</div>
            </div>
            <div class="message">
                <div class="jiang">
                    直降100
                </div>
                <div class="fenge"> | </div>
                <div class="mian">
                    12期免息
                </div>
            </div>
            <div class="price">
                <div class="xian_price">￥5888</div>
                <div class="yuan_price">5988</div>
            </div>
            <div class="biaoqian">
                <div>限时特惠</div>
                <div>分期免息</div>
            </div>
        </div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
</body>

</html>